/*
 * @轮子的作者: 轮子哥
 * @Date: 2023-12-15 16:58:21
 * @LastEditTime: 2023-12-16 09:54:48
 */
import { translate as $t } from "../../../language/index"
//自定义好数据格式，去返回数据里获取需要的

//允许使用的功能
export const allowedFeatures = [
    {
        id: 0,
        jobId: 0,
        tag: 'use_org_cost',
        value: null,
        name: $t('text.System.a77'),
        loading: false,
        elementType: 2,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'use_user_reward',
        value: null,
        name: $t('text.System.a78'),
        loading: false,
        elementType: 2,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'use_salary_manage',
        value: null,
        name: $t('text.System.a79'),
        loading: false,
        elementType: 2,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'use_finance_accounts',
        value: null,
        name: $t('text.System.a80'),
        loading: false,
        elementType: 2,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'use_salary_config',
        value: null,
        name: $t('text.System.a81'),
        loading: false,
        elementType: 2,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'use_money_plan',
        value: null,
        name: $t('text.System.a82'),
        loading: false,
        elementType: 2,
        type: 6
    },
]

//门店费用
export const orgCost = [
    {
        id: 0,
        jobId: 0,
        tag: 'find_org_cost',
        value: null,
        name: $t('text.System.a84'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'insert_org_cost',
        value: null,
        name: $t('text.System.a85'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'edit_del_org_cost',
        value: null,
        name: $t('text.System.a86'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'examine_org_cost',
        value: null,
        name: $t('text.System.a87'),
        loading: false,
        elementType: 0,
        type: 6
    },
]


//员工奖惩
export const userReward = [
    {
        id: 0,
        jobId: 0,
        tag: 'find_user_reward',
        value: null,
        name: $t('text.System.a89'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'insert_user_reward',
        value: null,
        name: $t('text.System.a90'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'edit_del_user_reward',
        value: null,
        name: $t('text.System.a91'),
        loading: false,
        elementType: 0,
        type: 6
    },
    {
        id: 0,
        jobId: 0,
        tag: 'examine_user_reward',
        value: null,
        name: $t('text.System.a92'),
        loading: false,
        elementType: 0,
        type: 6
    },
]

//薪资管理
export const payroll = [
    {
        id: 0,
        jobId: 0,
        tag: 'find_salary',
        value: null,
        name: $t('text.System.a94'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 6//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理,5-报备记录，6-交易合同，7-财务管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'generate_review_salary',
        value: null,
        name: $t('text.System.a95'),
        loading: false,
        elementType: 2,
        type: 6
    }
]